package user

import (
	"github.com/flipped-aurora/gin-vue-admin/server/api/uniapp"
	v1 "github.com/flipped-aurora/gin-vue-admin/server/api/v1"
	"github.com/gin-gonic/gin"
)

type XkUserRouter struct {
}

func (xkUserRouter *XkUserRouter) InitXkUserRouter(Router *gin.RouterGroup) {

	userApi := v1.ApiGroupApp.UserGroup.UserApi
	xkUserRouterWithoutRecord := Router.Group("user") //.Use(middleware.OperationRecord())
	{
		// 查询所有的用户作者信息
		xkUserRouterWithoutRecord.POST("find/authors", userApi.FindAuthorPage)
	}

}

func (xkUserRouter *XkUserRouter) InitUniappXkUserRouter(Router *gin.RouterGroup) {
	loginApi := uniapp.ApiGroupApp.LoginApiGroup
	loginRouter := Router.Group("/login")

	{
		loginRouter.POST("/loginWxMobile", loginApi.LoginWxMobile)
	}
}
